package com.anyou.mall.wxrefund;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;


@Data
@ApiModel("微信退款参数类")
@NoArgsConstructor
@AllArgsConstructor
public class WxRefundParam {


    @ApiModelProperty("原支付时的订单号")
    @NotBlank(message = "订单号不能为空")
    private String orderNo;

    @ApiModelProperty("退款订单号")
    @NotBlank(message = "退款订单号不能为空")
    private String refundNo;

    @ApiModelProperty("原支付时支付的总金额(元,小数点后最多只能保留两位,否则会报错)")
    @NotBlank(message = "原支付时支付的总金额(元)不能为空")
    private Double totalFee;

    @ApiModelProperty("退款金额(元,小数点后最多只能保留两位,否则会报错)")
    @NotBlank(message = "退款金额(元)不能为空")
    private Double refundFee;


}
